package cn.tedu;


public class summary {
    public static void main(String[] args) {
        Teacher t=new Teacher();
        Studnet s=new Studnet();
        t.classss();


    }
}
class Teacher{
    int f=10;

    public void eat(){
        System.out.println("吃饭~");
    }
    public void sleep(){
        System.out.println("睡觉~");
    }
    public String play(){
        System.out.println("打游戏");
        return "英雄联盟";
    }
    public void classss(){
        System.out.println("我在上课");
        int c=1;

        System.out.println("剩余粉笔数量："+(f-c));
        c++;
    }
    public void homeworkkkk(){
        System.out.println("我在批改作业");
    }


}
class Studnet extends Teacher{
    @Override
    public String play(){
        System.out.println("打游戏");
        return "王者荣耀";
    }
    public void study(){
        System.out.println("我在听课学习");
    }
    public void homework(){
        System.out.println("我在写作业");
    }

}
